//
//  IOosObjects.h
//  oos4ios
//
//  Created by Pablo Gonzalez on 3/2/11.
//

#import "OosUser.h"

// use to extract backup of the object for exporting
struct OosMeBackup {
    NSString *editAvatarUrlString;
    NSString *name;
    NSString *surname;
    NSString *telephone;
    NSString *mail;
    NSNumber *facebookM;
    NSNumber *twitter;
    NSNumber *fbCheckin;
};

@interface OosMe : OosUser

+ (OosMe *) meFromSlug: (NSString *) userSlug;

+ (OosMe *) me;
+ (void) clearMe; 

@property (nonatomic, retain) NSString *editAvatarUrlString;
@property (nonatomic, retain) NSURL *editAvatarUrl;

@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *surname;
@property (nonatomic, retain) NSString *telephone;
@property (nonatomic, retain) NSString *mail;

#pragma Settings


@property (nonatomic, retain) NSNumber *facebook;
@property (nonatomic, retain) NSNumber *twitter;
@property (nonatomic, retain) NSNumber *fbCheckin;

@property (nonatomic, readonly) BOOL hasFacebook;
@property (nonatomic, readonly) BOOL hasTwitter;
@property (nonatomic, readonly) BOOL hasFbCheckin;

// TODO: create settings object

//@property (nonatomic) BOOL receivesEmails;
//@property (nonatomic) BOOL receivesNewsletters;
//@property (nonatomic) BOOL receivesEmailsOnlyFromContacts;
//@property (nonatomic) BOOL receivesBulletins;
//@property (nonatomic) BOOL receivesMailsOnMediaComments;
//@property (nonatomic) BOOL receivesMailsOnLikes;
//@property (nonatomic) BOOL receivesMailsOnCommentsOnReview;
//@property (nonatomic) BOOL receivesSuggestedContacts;

@end

